package edu.sctu.fengleilin.month06.day150629;

import java.util.Random;

/**
 * Created by user09 on 2015/6/29.
 */
public class StringPra {
    public static void main(String[] args) {
        String s = "abc";
        String ss = "ok" + s + "xyz" + 5;
        System.out.println(ss);

        String s1 = "";
        Random rand = new Random();
        for (int i = 0; i <  10; i++) {
            s1 = s1 + rand.nextInt(1000) + " ";
        }
        System.out.println(s1);

        String s2 = "";
        Random rand1 = new Random();
        for(int i = 0; i <  10; i++) {
              s2 = (new StringBuilder(String.valueOf(s))).append(rand1.nextInt(1000)).append(" ").toString();
        }
        System.out.println(s2);
    }
}
